﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LaoLuo
{
    /// <summary>
    /// exception whose message is visible to front-user
    /// </summary>
    public class UserVisibleExcepiton : ApplicationException
    {
        /// <summary>
        /// init a <see cref="UserVisibleExcepiton"/>
        /// </summary>
        public UserVisibleExcepiton()
        {
            
        }

        /// <summary>
        /// init a <see cref="UserVisibleExcepiton"/>
        /// </summary>
        /// <param name="message"></param>
        public UserVisibleExcepiton(String message) 
            : base(message)
        { 

        }

        /// <summary>
        /// init a <see cref="UserVisibleExcepiton"/>
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"> </param>
        public UserVisibleExcepiton(String format, params object[] args)
            : base(string.Format(format, args))
        {

        }

        /// <summary>
        /// init a <see cref="UserVisibleExcepiton"/>
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public UserVisibleExcepiton(String message, Exception innerException)
            : base(message, innerException)
        {

        }
    }
}
